package com.bbs.services;

import java.util.List;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.bbs.bean.BbsLogInfo;
import com.bbs.dao.BbsLogInfoDao;

@Transactional
@Service
public class BbsLogInfoManager {
	private BbsLogInfoDao bbsLogInfoDao;

	public BbsLogInfoDao getBbsLogInfoDao() {
		return bbsLogInfoDao;
	}

	public void setBbsLogInfoDao(BbsLogInfoDao bbsLogInfoDao) {
		this.bbsLogInfoDao = bbsLogInfoDao;
	}
	
	public void save(BbsLogInfo bbsLogInfo){
		bbsLogInfoDao.save(bbsLogInfo);
	}
	
	public void update(BbsLogInfo bbsLogInfo){
		bbsLogInfoDao.update(bbsLogInfo);
	}
	
	public void delete(int id){
		bbsLogInfoDao.deleteById(id);
	}
	
	public List findAll(){
		return bbsLogInfoDao.findAll();
	}
}
